package io.github.wppli.infrastructure.persistent.dao;

import io.github.wppli.infrastructure.persistent.po.UserBehaviors;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户行为记录 Mapper 接口
 * </p>
 *
 * @author lijiaqiang@ljq1024.cc
 * @since 2025-03-12
 */
@Mapper
public interface IUserBehaviorsDao extends BaseMapper<UserBehaviors> {

    List<UserBehaviors> queryByUserId(@Param("userId") Long userId);

    List<UserBehaviors> findAll();

    List<UserBehaviors> findAllWithPagination(@Param("batchSize") int batchSize, @Param("offset")int offset);
}
